namespace go feedserver

struct User{
    1:i64 ID
    2:string Name
    3:i64 FollowCount
    4:i64 FollowerCount
    5:bool IsFollow
}

struct Video{
	1:i64 ID
	2:User Author
	3:string Title
	4:string PlayUrl
	5:string CoverUrl
	6:i64 FavouriteCount
	7:i64 CommentCount
	8:bool IsFavourite
}
struct GetVideoFeedRequest{
    1:i64 userId
    2:i64 latestTime
}

struct GetVideoFeedResponse{
    1:list<Video> result
    2:i64 nextTime
}

service FeedService {
    GetVideoFeedResponse GetVideoFeed (1:GetVideoFeedRequest req)
}